<HTML>
<HEAD>
<TITLE>JavaScript Source Code 3000:  Misc.:  French Translator</TITLE>
<META HTTP-EQUIV="JavaScript Source Code 3000" CONTENT = "no-cache">
<META NAME="date" CONTENT="2000-09-09">
<META NAME="channel" CONTENT="Web Developer">
<META NAME="author" CONTENT="JavaScript Source Code 3000">
<META NAME="section" CONTENT="Miscellaneous">
<META NAME="description" CONTENT="If you have ever wondered how to say a simple phrase in French, this script can help you out.  Simply enter what you would like to say, and the translation is given to you.  Thank JavaScript!">

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var A=0
var B=0
var C=0
var D=0
var french=""
function process() {
Translation()
alert(french)
}
function Translation() {
french =  partA()  + partB() + partC() + partD() + "?"
}
function partA() {
if (A==1)
return "Voulez vous"
else if (A==2)
return "Devons nous vraiment"
else if (A==3)
return "Savez-vous"
else if (A==4)
return "Peut-on"
else if (A==5)
return "Arriverai-je a" 
else
return "Euh...et pour"
}
function partB() {
if (B==1)
return " coucher avec"
else if (B==2)
return " trouver"
else if (B==3)
return " manger"
else if (B==4)
return " acheter"
else if (B==5)
return " me montrer" 
else if (B==6)
return " ressembler a"
else if (B==7)
return " supporter"
else if (B==8)
return " rentrer dans"
else
return " biduler"
}
function partC() {
if (C==1)
return " Gerard Depardieu"
else if (C==2)
return " du parfum"
else if (C==3)
return " une paire de cuisse de grenouilles"
else if (C==4)
return " du bon fromage"
else if (C==5)
return " la Tour Eiffel" 
else if (C==6)
return " un vrai parisien"
else if (C==7)
return " ma femme"
else if (C==8)
return " mon patalon"
else
return " un truc"
}
function partD() {
if (D==1)
return " dans vos reves les plus fous"
else if (D==2)
return " pour cacher l'odeur"
else if (D==3)
return " en buvant du vin rouge"
else if (D==4)
return " sans savoir parler francais"
else if (D==5)
return " juste apres le petit dejeune" 
else if (D==6)
return " sans avoir l'air trop arrogant"
else if (D==7)
return " avec ma belle-mere presente"
else if (D==8)
return " apres 300 croissants au beurre"
else if (D==9)
return ""
else
return " avec machin-chose"
}
// End -->
</SCRIPT>
</HEAD>

<BODY BGCOLOR=#ffffff vlink=#0000ff>

<BR>
<center>
<table width="600" cellpadding="0" cellspacing="10">
<tr>
<td width="468" align="center">

	
</td>
<td width="120" align="center">

	
</td>
</tr>
</table>
<BR>
<BR>
<BASEFONT SIZE=3>
  <FONT SIZE=6>
<B><FONT SIZE="+2" FACE="Helvetica,Arial" ALIGN=RIGHT COLOR="#0000FF">
<b><A HREF="../index.htm" /" TARGET="_top">
Home</A> </b><img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <b><A HREF="index.htm" /miscellaneous/"><font color="#FF0000">Miscellaneous</font></A> </b>
<img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <FONT COLOR="#006666">French Translator</FONT></b></FONT><BR>
</B><BR>
  </FONT>
<TABLE BORDER=0 WIDTH=500 CELLPADDING=3 CELLSPACING=0>
<tr><td><font FACE=" helvetica,arial,geneva">
<br>
<br>
<!-- Description --><!--content_start-->

If you have ever wondered how to say a simple phrase in French, this script can help you out.  Simply enter what you would like to say, and the translation is given to you.  Thank JavaScript!<br><hr>
</td></tr>
</table>
<!--  Demonstration -->
<BODY>
<CENTER>
<FORM>
<input type ="radio" name="choiceA" value"A1" onClick="A = 1">Do you want
<input type ="radio" name="choiceA" value"A2" onClick="A = 2">Do we really have 
<input type ="radio" name="choiceA" value"A3" onClick="A = 3">Do you know how
<br> 
<input type ="radio" name="choiceA" value"A4" onClick="A = 4">Is it be possible
<input type ="radio" name="choiceA" value"A5" onClick="A = 5">Will I manage
</form>
<hr> 
<form>
<input type ="radio" name="choiceB" value"B1" onClick="B = 1">to sleep with
<input type ="radio" name="choiceB" value"B2" onClick="B = 2">to find 
<input type ="radio" name="choiceB" value"B3" onClick="B = 3">to eat
<input type ="radio" name="choiceB" value"B4" onClick="B = 4">to buy
<br>
<input type ="radio" name="choiceB" value"B5" onClick="B = 5">to show me
<input type ="radio" name="choiceB" value"B6" onClick="B = 6">to look like 
<input type ="radio" name="choiceB" value"B7" onClick="B = 7">to stand 
<input type ="radio" name="choiceB" value"B8" onClick="B = 8">to get in
</form>
 <hr>
<form>  
<input type ="radio" name="choiceC" value"C1" onClick="C = 1">Gerard Depardieu
<input type ="radio" name="choiceC" value"C2" onClick="C = 2">perfume
<input type ="radio" name="choiceC" value"C3" onClick="C = 3">a pair of frog legs
<br> 
<input type ="radio" name="choiceC" value"C4" onClick="C = 4">good cheese
<input type ="radio" name="choiceC" value"C5" onClick="C = 5">the Eiffel Tower
<br> 
<input type ="radio" name="choiceC" value"C6" onClick="C = 6">a genuine Parisian 
<input type ="radio" name="choiceC" value"C7" onClick="C = 7">my wife
<input type ="radio" name="choiceC" value"C8" onClick="C = 8">my pants
</form> 
<hr> 
<form>   
<input type ="radio" name="choiceD" value"D1" onClick="D = 1">in your widest dreams?
<input type ="radio" name="choiceD" value"D2" onClick="D = 2">to cover the smell? 
<input type ="radio" name="choiceD" value"D3" onClick="D = 3">while drinking red wine?
<input type ="radio" name="choiceD" value"D4" onClick="D = 4">without speaking French?
<input type ="radio" name="choiceD" value"D5" onClick="D = 5">right after breakfast? 
<input type ="radio" name="choiceD" value"D6" onClick="D = 6">without being too arrogant? 
<input type ="radio" name="choiceD" value"D7" onClick="D = 7">when my mother-in-law is around?
<input type ="radio" name="choiceD" value"D8" onClick="D = 8">after eating 300 croissants?
<input type ="radio" name="choiceD" value"D9" onclick="D = 9">? (nothing)
</FORM> 
<hr> 
<FORM><INPUT TYPE="button" VALUE="translate" NAME="translator" onClick="process()">
</FORM>
<P>
<BR>
<P>
<a name="source">
<TABLE BORDER=0 WIDTH=500 CELLPADDING=3 CELLSPACING=0>
<tr><td BGCOLOR=yellow><font FACE="helvetica,arial,geneva"><b>JavaScript Source Code 3000:  Misc.:  French Translator</b>
<p>Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s).  The script is yours!<br><br></font></td></tr>
<tr><td BGCOLOR=yellow ALIGN=CENTER>
<form NAME="copy">

<DIV align="center">
<input type=button value="Highlight All" onClick="javascript:this.form.txt.focus();this.form.txt.select();">&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT TYPE="text" NAME="total" VALUE="Script Size:  4.80 KB  " size="24">
</DIV>

<textarea NAME="txt" ROWS=20 COLS=75 WRAP=VIRTUAL>

&lt;!-- TWO STEPS TO INSTALL FRENCH TRANSLATOR:

   1.  Paste the coding into the HEAD of your HTML document
   2.  Add the last code into the BODY of your HTML document  --&gt;

&lt;!-- STEP ONE: Copy this code into the HEAD of your HTML document  --&gt;

&lt;HEAD&gt;

&lt;SCRIPT LANGUAGE="JavaScript"&gt;
&lt;!-- Original: Lucie Soublin  --&gt;

&lt;! &gt;
&lt;! &gt;

&lt;!-- Begin
var A=0
var B=0
var C=0
var D=0
var french=""
function process() {
Translation()
alert(french)
}
function Translation() {
french =  partA()  + partB() + partC() + partD() + "?"
}
function partA() {
if (A==1)
return "Voulez vous"
else if (A==2)
return "Devons nous vraiment"
else if (A==3)
return "Savez-vous"
else if (A==4)
return "Peut-on"
else if (A==5)
return "Arriverai-je a" 
else
return "Euh...et pour"
}
function partB() {
if (B==1)
return " coucher avec"
else if (B==2)
return " trouver"
else if (B==3)
return " manger"
else if (B==4)
return " acheter"
else if (B==5)
return " me montrer" 
else if (B==6)
return " ressembler a"
else if (B==7)
return " supporter"
else if (B==8)
return " rentrer dans"
else
return " biduler"
}
function partC() {
if (C==1)
return " Gerard Depardieu"
else if (C==2)
return " du parfum"
else if (C==3)
return " une paire de cuisse de grenouilles"
else if (C==4)
return " du bon fromage"
else if (C==5)
return " la Tour Eiffel" 
else if (C==6)
return " un vrai parisien"
else if (C==7)
return " ma femme"
else if (C==8)
return " mon patalon"
else
return " un truc"
}
function partD() {
if (D==1)
return " dans vos reves les plus fous"
else if (D==2)
return " pour cacher l'odeur"
else if (D==3)
return " en buvant du vin rouge"
else if (D==4)
return " sans savoir parler francais"
else if (D==5)
return " juste apres le petit dejeune" 
else if (D==6)
return " sans avoir l'air trop arrogant"
else if (D==7)
return " avec ma belle-mere presente"
else if (D==8)
return " apres 300 croissants au beurre"
else if (D==9)
return ""
else
return " avec machin-chose"
}
// End --&gt;
&lt;/SCRIPT&gt;

&lt;!-- STEP TWO: Put this code into the BODY of your HTML document  --&gt;

&lt;BODY&gt;

&lt;CENTER&gt;
&lt;FORM&gt;
&lt;input type ="radio" name="choiceA" value"A1" onClick="A = 1"&gt;Do you want
&lt;input type ="radio" name="choiceA" value"A2" onClick="A = 2"&gt;Do we really have 
&lt;input type ="radio" name="choiceA" value"A3" onClick="A = 3"&gt;Do you know how
&lt;br&gt; 
&lt;input type ="radio" name="choiceA" value"A4" onClick="A = 4"&gt;Is it be possible
&lt;input type ="radio" name="choiceA" value"A5" onClick="A = 5"&gt;Will I manage
&lt;/form&gt;
&lt;hr&gt; 
&lt;form&gt;
&lt;input type ="radio" name="choiceB" value"B1" onClick="B = 1"&gt;to sleep with
&lt;input type ="radio" name="choiceB" value"B2" onClick="B = 2"&gt;to find 
&lt;input type ="radio" name="choiceB" value"B3" onClick="B = 3"&gt;to eat
&lt;input type ="radio" name="choiceB" value"B4" onClick="B = 4"&gt;to buy
&lt;br&gt;
&lt;input type ="radio" name="choiceB" value"B5" onClick="B = 5"&gt;to show me
&lt;input type ="radio" name="choiceB" value"B6" onClick="B = 6"&gt;to look like 
&lt;input type ="radio" name="choiceB" value"B7" onClick="B = 7"&gt;to stand 
&lt;input type ="radio" name="choiceB" value"B8" onClick="B = 8"&gt;to get in
&lt;/form&gt;
 &lt;hr&gt;
&lt;form&gt;  
&lt;input type ="radio" name="choiceC" value"C1" onClick="C = 1"&gt;Gerard Depardieu
&lt;input type ="radio" name="choiceC" value"C2" onClick="C = 2"&gt;perfume
&lt;input type ="radio" name="choiceC" value"C3" onClick="C = 3"&gt;a pair of frog legs
&lt;br&gt; 
&lt;input type ="radio" name="choiceC" value"C4" onClick="C = 4"&gt;good cheese
&lt;input type ="radio" name="choiceC" value"C5" onClick="C = 5"&gt;the Eiffel Tower
&lt;br&gt; 
&lt;input type ="radio" name="choiceC" value"C6" onClick="C = 6"&gt;a genuine Parisian 
&lt;input type ="radio" name="choiceC" value"C7" onClick="C = 7"&gt;my wife
&lt;input type ="radio" name="choiceC" value"C8" onClick="C = 8"&gt;my pants
&lt;/form&gt; 
&lt;hr&gt; 
&lt;form&gt;   
&lt;input type ="radio" name="choiceD" value"D1" onClick="D = 1"&gt;in your widest dreams?
&lt;input type ="radio" name="choiceD" value"D2" onClick="D = 2"&gt;to cover the smell? 
&lt;input type ="radio" name="choiceD" value"D3" onClick="D = 3"&gt;while drinking red wine?
&lt;input type ="radio" name="choiceD" value"D4" onClick="D = 4"&gt;without speaking French?
&lt;input type ="radio" name="choiceD" value"D5" onClick="D = 5"&gt;right after breakfast? 
&lt;input type ="radio" name="choiceD" value"D6" onClick="D = 6"&gt;without being too arrogant? 
&lt;input type ="radio" name="choiceD" value"D7" onClick="D = 7"&gt;when my mother-in-law is around?
&lt;input type ="radio" name="choiceD" value"D8" onClick="D = 8"&gt;after eating 300 croissants?
&lt;input type ="radio" name="choiceD" value"D9" onclick="D = 9"&gt;? (nothing)
&lt;/FORM&gt; 
&lt;hr&gt; 
&lt;FORM&gt;&lt;INPUT TYPE="button" VALUE="translate" NAME="translator" onClick="process()"&gt;
&lt;/FORM&gt;
&lt;/CENTER&gt;

 

&lt;!-- Script Size:  4.80 KB  --&gt;
</textarea><br><font FACE="helvetica,arial,geneva"></font></td></tr>

</table>
</form>
</FONT>
</CENTER>


</center>
</body></html>